home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 February / macformat-034.iso / mac / Shareware City / Developers / Floating.c ƒ / Floating.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-24  |  1.1 KB  |  42 lines  |  [TEXT/MPCC]

  1. #ifndef _MY_FLOATING_
  2. #define _MY_FLOATING_
  3.  
  4. #include <Windows.h>
  5. #include <LowMem.h>
  6.  
  7. // funtion prototypes
  8. void ActivateWindow (WindowPtr window, Boolean on);
  9. void InitFloats (void);
  10. Boolean IsFloating (WindowPtr whichWindow);
  11. Boolean IsVisible (WindowPtr whichWindow);
  12. void UpdateFloats (void);
  13. void MakeFloat (WindowPtr theWindow);
  14. void ReactToRemoval (WindowPeek underWindow);
  15. void HideTheWindow (WindowPtr whichWindow);    
  16. void DisposeTheWindow (WindowPtr whichWindow);
  17. void SelectTheWindow (WindowPtr whichWindow);
  18. void DragTheWindow (WindowPtr whichWindow, EventRecord *Event);
  19. //generally useless; too low level
  20. //void HideFloats (void);
  21. //void ShowFloats (void);
  22.  
  23. // global variables
  24. extern WindowPtr bottomFloat;
  25. extern WindowPtr topFloat;
  26. extern WindowPtr topWindow;
  27.  
  28. // macros used periodically in the floating window functions
  29. #define kFloatingKind        317
  30.  
  31. //#define CurActivate            0x0A64    //68K
  32. #define CurActivate            (LMGetCurActivate())
  33.  
  34. //#define CurDeactive            0x0A68    //68K
  35. #define CurDeactive            (LMGetCurDeactive())
  36.  
  37. //#define WindowList            0x09D6    //68K
  38. #define WindowList            (LMGetWindowList())
  39.  
  40. #define cancelDrag            0x80008000
  41.  
  42. #endif